// pages/news/news.js
Page({
  data: {
    active: 0,
    page:1,
    pageSize:5,
    contentType:''
  },
  onLoad(){

  },
  onShow(){
    this.getMessages()
  },
  async getMessages(){
    const {page,pagesize} = this.data
    const res = await wx.http.get('/driver/messages/page',{contentType:200,page,pagesize})
  },
  goDetail(){
    wx.navigateTo({
      url: '/pages/news-notice-detail/news-notice-detail'
    })
  }

  /**
   * 组件的方法列表
   */
})
